// -----------------------------------------------------------------------
//  <copyright file="ResourceAccessType.cs" company="LiuliuSoft">
//      Copyright (c) 2022-2024 DaprPlus. All rights reserved.
//  </copyright>
//  <site>https://www.dapr.plus</site>
//  <last-editor>郭明锋</last-editor>
//  <last-date>2024-09-06 13:09</last-date>
// -----------------------------------------------------------------------

using DaprPlus.Properties;

using OSharp.Localized;


namespace DaprPlus.Authorization;

/// <summary>
///     资源访问类型
/// </summary>
public enum ResourceAccessType
{
    [LocalizedDescription("String_ResourceAccessType_None", typeof(ResDaprPlus))]
    None = 0,

    /// <summary>
    ///     匿名用户可访问
    /// </summary>
    [LocalizedDescription("String_ResourceAccessType_Anonymous", typeof(ResDaprPlus))]
    Anonymous = 1,

    /// <summary>
    ///     登录用户可访问
    /// </summary>
    [LocalizedDescription("String_ResourceAccessType_LoggedIn", typeof(ResDaprPlus))]
    LoggedIn = 2,

    /// <summary>
    ///     指定角色可访问
    /// </summary>
    [LocalizedDescription("String_ResourceAccessType_RoleLimit", typeof(ResDaprPlus))]
    RoleLimit = 3
}
